// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_MST_INDUSTRY_TYPE
// * CreateDate    : 2014-06-05 18:30:15
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:15
// * LastChanger   : 2014-06-05 18:30:15
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class MstIndustryTypeEntity : EntityBase
    {
        public MstIndustryTypeTable TableSchema
        {
            get
            {
                return MstIndustryTypeTable.Current;
            }
		}
		
		public MstIndustryTypeEntity()
        {

        }
		
		public MstIndustryTypeEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.IndustryTypeCode = Convert.ToString(CommonFunctions.ToObject(dr["INDUSTRY_TYPE_CODE"]));
			this.IndustryTypeName = Convert.ToString(CommonFunctions.ToObject(dr["INDUSTRY_TYPE_NAME"]));
			this.Description = Convert.ToString(CommonFunctions.ToObject(dr["DESCRIPTION"]));
        }
		
		public MstIndustryTypeEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.IndustryTypeCode = Convert.ToString(CommonFunctions.ToObject(dr["INDUSTRY_TYPE_CODE"]));
			this.IndustryTypeName = Convert.ToString(CommonFunctions.ToObject(dr["INDUSTRY_TYPE_NAME"]));
			this.Description = Convert.ToString(CommonFunctions.ToObject(dr["DESCRIPTION"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return MstIndustryTypeTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string IndustryTypeCode
        {
            get { return Convert.ToString(GetData(MstIndustryTypeTable.C_INDUSTRY_TYPE_CODE)); }
            set { SetData(MstIndustryTypeTable.C_INDUSTRY_TYPE_CODE, value); }
        }
		
        [DataMember]
        public string IndustryTypeName
        {
            get { return Convert.ToString(GetData(MstIndustryTypeTable.C_INDUSTRY_TYPE_NAME)); }
            set { SetData(MstIndustryTypeTable.C_INDUSTRY_TYPE_NAME, value); }
        }
		
        [DataMember]
        public string Description
        {
            get { return Convert.ToString(GetData(MstIndustryTypeTable.C_DESCRIPTION)); }
            set { SetData(MstIndustryTypeTable.C_DESCRIPTION, value); }
        }
		
		#endregion
	}
	
	
}	

